import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/customerAllocationManager' };
export default {
  path: '/customerAllocationManager',
  meta: {
    ...meta,
    icon: 'setting',
    title: '客户分配管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      path: `${basePath}/customerAllocaeRecycling`,
      name: 'customerAllocaeRecycling',
      component: _import('customerAllocationManager/customerAllocaeRecycling'),
      meta: {
        ...meta,
        title: '客户调配及回收',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/removeRelation`,
      name: 'removeRelation',
      component: _import('customerAllocationManager/customerAllocaeRecycling/removeRelation'),
      meta: {
        ...meta,
        title: '解除亲缘关系',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/customerRecover`,
      name: 'removeRelation',
      component: _import('customerAllocationManager/customerAllocaeRecycling/customerRecover'),
      meta: {
        ...meta,
        title: '客户收回',
      },
    },
    {
      path: `${basePath}/customerAllocaeRecycling/sponsorAllocate`,
      name: 'removeRelation',
      component: _import('customerAllocationManager/customerAllocaeRecycling/sponsorAllocate'),
      meta: {
        ...meta,
        title: '主办人调配',
      },
    },
  ])('/customerAllocationManager'),
};
